from setuptools import setup
from torch.utils.cpp_extension import CUDAExtension, BuildExtension
import os

# extra_compile_args={"nvcc": ["-I" + os.path.join(os.path.dirname(os.path.abspath(__file__)), "glm/")], "cxx": []}
setup(
    name="octree_cpp",
    packages=['octree_cpp'],
    ext_modules=[
        CUDAExtension(
            name="octree_cpp._C",
            sources=[
                "octree.cu",
                "ext.cpp"
            ],
            extra_compile_args={"nvcc": [], "cxx": []}
        )
    ],
    cmdclass={'build_ext': BuildExtension}
)